# vim: filetype=conf:ts=4:

backend = "xrender";
vsync = "none";
paint-on-overlay = true;

unredir-if-possible = false; # Disable tearing
sw-opti = true;
dbe = false;
unredir-if-possible-delay = 5000;
unredir-if-possible-exclude = [ ];

xrender-sync = true;
xrender-sync-fence = true;

# glx-no-stencil = true;
glx-swap-method = "undefined";
glx-copy-from-front = false;
# glx-no-rebind-pixmap = true;

shadow = true;
shadow-exclude = [
	"_GTK_FRAME_EXTENTS@:c",
	"class_g *?= 'Telegram' && override_redirect = true",
	"class_g *?= 'slop'",
	"class_g *?= 'VirtualBox'",
	"class_i = 'webcam'"
];
shadow-ignore-shaped = false;

no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;

shadow-radius = 8.0;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.9;

mark-wmwin-focused = true;
#mark-ovredir-focused = true;
use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-opacity = true;

#fading = true;
fade-delta = 2.5;
fade-in-step = 0.03;
fade-out-step = 0.03;

refresh-rate = 0;

# opacity-rule = [
# 	"40:class_g = 'Bspwm' && class_i = 'presel_feedback'"
# ];

opacity-rule = [
	# "100:! name~=''",
	# "100:n:w:*Chrome*",
	# "100:n:w:*Basilisk*",
	# "100:n:w:*Telegram*",
	# "80:class_i = 'dmenu'",
	"100:!class_g = 'xst-256color' && !class_g = 'urxvt'"
];

focus-exclude = [
];

menu-opacity = 1;
frame-opacity = 0.3;
inactive-opacity = 0.65;
inactive-opacity-override = false;

active-opacity = 0.9;
#blur-background = true;
#blur-background-fixed = true;
blur-background-exclude = [
	"window_type = 'dock'",
	"window_type = 'desktop'",
	"n:w:*Telegram*",
	"_GTK_FRAME_EXTENTS@:c"
];
blur-kern = "7x7gaussian";
#blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";

alpha-step = 0.06;

detect-transient = true;
detect-client-leader = true;

wintypes:
{
	tooltip = { fade = true; shadow = false; opacity = 1; focus = true; };
	dialog = { opacity = 1; };
	popup_menu = { shadow = false; };
	splash = { shadow = false; };
};

#shadow-exclude = [
#	"! name~=''",
#	"n:w:*Chrome*",
#	"name = 'Notification'",
#	"class_g = 'VirtualBox'",
#	"class_g = 'Conky'",
#	"class_g ?= 'Notify-osd'",
#	"class_g = 'Firefox'",
#	"n:w:*Telegram*",
#	"_GTK_FRAME_EXTENTS@:c"
#];
## shadow-exclude = "n:e:Notification";
## shadow-exclude-reg = "x10+0+0";
## xinerama-shadow-crop = true;

## Opacity
## menu-opacity = 0.92;
#inactive-opacity = 0.2;
#active-opacity = 0.92;
#inactive-opacity-override = true;
#alpha-step = 0.06;
## inactive-dim = 0.9;
## inactive-dim-fixed = true;
## blur-background = true;
## blur-background-frame = true;
#blur-kern = "3x3box";
## blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
## blur-background-fixed = true;
#blur-background-exclude = [
#	"window_type = 'dock'",
#	"window_type = 'desktop'",
#	"class_g = 'CoverGloobus'",
#	"class_g = 'Opera'",
#	"_GTK_FRAME_EXTENTS@:c"
#];

##opacity-rule = [ "80:class_g = 'XTerm'" ];
##opacity-rule = [ "80:class_g = 'UXTerm'" ];
##opacity-rule = [ "80:class_g = 'i3bar'" ];
##opacity-rule = [ "90:class_g = 'dzen'" ];
#opacity-rule = [ "40:class_g = 'Bspwm' && class_i = 'presel_feedback'", "80:class_i = 'dmenu'" ];

## Other
## sw-opti = true;
## unredir-if-possible = true;
## unredir-if-possible-delay = 5000;
## unredir-if-possible-exclude = [ ];
#focus-exclude = [ "class_g = 'Cairo-clock'" ,
#	"class_g = 'CoverGloobus'",
#	"class_g = 'Tilda'",
#	"class_g = 'Firefox'",
#	"class_g = 'Opera'"
#];
#invert-color-include = [ ];
## resize-damage = 1;

## GLX backend
## glx-no-stencil = true;
#glx-copy-from-front = false;
## glx-use-copysubbuffermesa = true;
## glx-no-rebind-pixmap = true;
#glx-swap-method = "undefined";
## glx-use-gpushader4 = true;
## xrender-sync = true;
## xrender-sync-fence = true;
